<script>
	import APPUpdate from "@/plugins/APPUpdate";
	import {
		mapMutations,
		mapGetters
	} from 'vuex';

	import {
		mpAutoLogin
	} from "@/api/connect.js";


	export default {
		data() {
			return {

			};
		},
		onLaunch: function() {
			uni.loadFontFace({
				global: true,
				family: 'MiSans-Light',
				source: 'url("https://cdn.osisx.com/fonts/mLight.woff2")',
				desc: {
					weight: 300
				}, // 关键：在这里描述字重
				success() {
					console.log("加载成功MiSans-Light")
				},
				fail() {
					console.log("加载失败MiSans-Light")
				}

			});
			uni.loadFontFace({
				global: true,
				family: 'MiSans-Normal',
				source: 'url("https://cdn.osisx.com/fonts/mNormal.woff2")',
				desc: {
					weight: 400
				}, // 关键：在这里描述字重
				success() {
					console.log("加载成功MiSans-Normal")
				},
				fail() {
					console.log("加载失败MiSans-Normal")
				}
			});
			uni.loadFontFace({
				global: true,
				family: 'MiSans-Regular',
				source: 'url("https://cdn.osisx.com/fonts/mRegular.woff2")',
				desc: {
					weight: 400
				}, // 关键：在这里描述字重
				success() {
					console.log("加载成功MiSans-Regular")
				},
				fail() {
					console.log("加载失败MiSans-Regular")
				}
			});
			uni.loadFontFace({
				global: true,
				family: 'MiSans-Medium',
				source: 'url("https://cdn.osisx.com/fonts/mMedium.woff2")',
				desc: {
					weight: 500
				}, // 关键：在这里描述字重
				success() {
					console.log("加载成功MiSans-Medium")
				},
				fail() {
					console.log("加载失败MiSans-Medium")
				}
			});
			uni.loadFontFace({
				global: true,
				family: 'MiSans-Demibold',
				source: 'url("https://cdn.osisx.com/fonts/mDemibold.woff2")',
				desc: {
					weight: 600
				}, // 关键：在这里描述字重
				success() {
					console.log("加载成功MiSans-Demibold")
				},
				fail() {
					console.log("加载失败MiSans-Demibold")
				}
			});

			// #ifdef APP-PLUS
			APPUpdate();
			// #endif

			// #ifdef MP-WEIXIN
			this.applyUpdateWeChat();
			// #endif


		},
		computed: {
			...mapGetters(['systemInfo'])
		},

		onShow() {

		},
		created() {
			try {
				let screenWidth = this.systemInfo.screenWidth
				this.updateScreenWidth(screenWidth)
				let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
				console.log("胶囊", menuButtonInfo)
				let {
					top,
					height,
					left
				} = menuButtonInfo
				let obj = {
					top: this.pxToRpx(top, screenWidth),
					height: this.pxToRpx(height, screenWidth),
					left: this.pxToRpx(left, screenWidth)
				}
				this.updateMenuButtonInfo(obj)
			} catch (error) {
				//TODO handle the exception
			}
		},
		mounted() {

		},

		methods: {
			...mapMutations(['updateScreenWidth', 'updateMenuButtonInfo']),
			pxToRpx(px, screenWidth) {
				const designWidth = 750; // 设计稿宽度
				const rpx = (designWidth / screenWidth) * px; // 根据屏幕宽度计算 rpx
				return rpx;
			},
			/**
			 * 微信小程序版本提交更新版本 解决缓存问题
			 */
			applyUpdateWeChat() {
				const updateManager = uni.getUpdateManager();

				updateManager.onCheckForUpdate(function(res) {
					// 请求完新版本信息的回调
				});

				updateManager.onUpdateReady(function(res) {
					uni.showModal({
						title: "更新提示",
						content: "发现新版本，是否重启应用？",
						success(res) {
							if (res.confirm) {
								// 新的版本已经下载好，调用 applyUpdate 应用新版本并重启
								updateManager.applyUpdate();
							}
						},
					});
				});
				updateManager.onUpdateFailed(function(res) {
					// 新的版本下载失败
				});
			},

			//  TODO 开屏广告 后续优化添加
			launch() {
				try {
					// 获取本地存储中launchFlag标识 开屏广告
					const value = uni.getStorageSync("launchFlag");
					if (!value) {
						// this.$u.route("/pages/index/agreement");
					} else {
						//app启动时打开启动广告页
						var w = plus.webview.open(
							"/hybrid/html/advertise/advertise.html",
							"本地地址", {
								top: 0,
								bottom: 0,
								zindex: 999,
							},
							"fade-in",
							500
						);
						//设置定时器，4s后关闭启动广告页
						setTimeout(function() {
							plus.webview.close(w);
							APPUpdate();
						}, 3000);
					}
				} catch (e) {
					// error
					uni.setStorage({
						key: "launchFlag",
						data: true,
						success: function() {
							console.log("error时存储launchFlag");
						},
					});
				}
			},
		},
	};
</script>

<style lang="scss">
	@import "uview-ui/index.scss";

	// -------适配底部安全区  苹果x系列刘海屏




	// #ifdef MP-WEIXIN
	.mp-iphonex-bottom {
		padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom);
		box-sizing: content-box;
		height: auto !important;
		padding-top: 10rpx;
	}

	// #endif

	body {
		background-color: $bg-color !important;
	}

	/************************ */
	.w200 {
		width: 200rpx !important;
	}

	.flex1 {
		flex: 1; //必须父级设置flex
	}

	.flex-row-center-center {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.flex-row-start-center {
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}

	.flex-row-start-end {
		display: flex;
		justify-content: flex-start;
		align-items: flex-end;
	}

	.flex-row-end-start {
		display: flex;
		justify-content: flex-end;
		align-items: flex-start;
	}

	.flex-row-end-center {
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}


	.flex-row-end-end {
		display: flex;
		justify-content: flex-end;
		align-items: flex-end;
	}

	.flex-row-center-end {
		display: flex;
		justify-content: center;
		align-items: flex-end;
	}

	.flex-row-end-center {
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}

	.flex-row-start-start {
		display: flex;
		justify-content: flex-start;
		align-items: flex-start;
	}

	.flex-row-between-start {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
	}

	.flex-row-between-end {
		display: flex;
		justify-content: space-between;
		align-items: flex-end;
	}

	.flex-row-between-center {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.flex-row-center-start {
		display: flex;
		justify-content: center;
		align-items: flex-start;
	}

	.flex-column-start-center {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
	}

	.flex-column-between-center {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
	}

	.flex-column-between-start {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: flex-start;
	}

	.flex-column-around-start {
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		align-items: flex-start;
	}

	.flex-column-start-start {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
	}

	.flex-column-end-center {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: center;
	}

	.flex-column-end-start {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		align-items: flex-start;
	}

	.flex-column-center-center {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.flex-column-center-start {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
	}

	.base-tip-box {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		width: 300rpx;
		height: 40rpx;
		font-size: 22rpx;
		line-height: 40rpx;
		color: #fff;
		background-image: linear-gradient(to right, rgba(0, 0, 0, 0)0%, rgba(0, 0, 0, .4)10%, rgba(0, 0, 0, .6)30%, rgba(0, 0, 0, .6)70%, rgba(0, 0, 0, .4)90%, rgba(0, 0, 0, 0)100%);
		z-index: 9;
		opacity: 0;
		animation: showBaseTipAni 0.5s linear forwards;
		z-index: 99999999999999999999999;

		&::after {
			content: '';
			position: absolute;
			left: 0rpx;
			bottom: -1rpx;
			/* 控制阴影的高度 */
			width: 100%;
			height: 1rpx;
			/* 控制阴影的厚度 */
			background: rgba(255, 255, 255, 0.3);
			opacity: 0.3;

		}

		&::before {
			content: '';
			position: absolute;
			left: 0rpx;
			top: -1rpx;
			/* 控制阴影的高度 */
			width: 100%;
			height: 1rpx;
			/* 控制阴影的厚度 */
			background: rgba(255, 255, 255, 0.3);
			opacity: 0.3;
		}
	}

	@keyframes showBaseTipAni {
		0% {
			transform: translate(-50%, -30%);
			opacity: 0.5;
		}

		100% {
			transform: translate(-50%, -50%);
			opacity: 1;
		}
	}

	.cover-img {
		width: 100%;
		height: 100%;
	}

	.confirm-btn {
		width: 250rpx;
		// height: 50rpx;
		height: 65rpx;
		font-size: 24rpx;
		font-weight: 700;
		line-height: 24rpx;
		text-align: center;
		// background-color: #f0eeef;
		// color: #000;
		background-color: rgba(248, 239, 224, 1);
		color: #715a52;
		border-radius: 8rpx;

	}

	.scroll-content {
		width: 100%;
		height: 100%;
		overflow: hidden;

		::-webkit-scrollbar {
			display: none !important;
		}
	}

	.room-btn {
		position: absolute;
		right: 0rpx;
		bottom: 300rpx;
		// width: 45rpx;
		height: 70rpx;
		z-index: 9;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		background-image: linear-gradient(to bottom, rgba(0, 0, 0, .0)0%, rgba(0, 0, 0, .05)10%, rgba(0, 0, 0, .1)20%, rgba(0, 0, 0, .1)80%, rgba(0, 0, 0, .05)90%, rgba(0, 0, 0, .0)100%);
		box-sizing: border-box;
		padding: 0rpx 15rpx;
		transition: all 0.5s;
		pointer-events: fill;

		.room-btn-content {
			width: 100%;
			height: 45rpx;

		}

		.room-btn-img {
			width: 45rpx;
			height: 45rpx;
		}

		.room-text {
			font-size: 22rpx;
			line-height: 22rpx;
			color: #fff;
			text-shadow: 1rpx 1rpx 1rpx rgba(0, 0, 0, .5);
			padding-bottom: 2rpx;
		}

		.room-btn-fast-icon {
			position: absolute;
			right: 6rpx;
			top: 8rpx;
			width: 18rpx;
			height: 18rpx;
			z-index: 9;
			opacity: 0.6;
		}

		.room-btn-line {
			position: absolute;
			left: 0rpx;
			bottom: 8rpx;
			width: 100%;
			height: 1rpx;
			z-index: 9;
			box-sizing: border-box;
			padding: 0rpx 6rpx;

			.room-btn-line-content {
				width: 100%;
				height: 100%;
				background-color: rgba(255, 255, 255, .3);
				opacity: 0.6;
			}
		}


	}


	.room-btn-active {
		right: -100%;
		animation: scaleRoomBtnAni 0.3s ease-in-out;
	}

	@keyframes scaleRoomBtnAni {
		0% {
			transform: scale(1);
		}

		50% {
			transform: scale(0.95);
		}

		100% {
			transform: scale(1);
		}
	}

	.cover-screen-position {
		position: absolute;
		left: 0rpx;
		top: 0rpx;
		width: 100vw;
		height: 100vh;
	}

	.modal-content-box {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		border-radius: 10rpx;
		box-sizing: border-box;
		padding: 6rpx;
		background-color: rgba(255, 255, 255, 0);
		backdrop-filter: blur(15rpx);
		box-shadow: inset 0rpx 0rpx 2rpx rgba(255, 255, 255, .8);

		.modal-content {
			width: 100%;
			height: 100%;
			background-color: rgba(255, 255, 255, .8);
			border-radius: 10rpx;
			box-shadow: 0rpx 0rpx 8rpx rgba(255, 255, 255, .8);
			overflow: hidden;
		}
	}



	.modal-title {
		position: relative;
		width: 100%;
		height: 60rpx;
		text-align: center;
		font-size: 30rpx;
		color: #5e5c5d;
		box-sizing: border-box;
		padding: 0rpx 20rpx;
		letter-spacing: 2rpx;
		line-height: 60rpx;

		.bottom-line {
			position: absolute;
			left: 0rpx;
			bottom: 0rpx;
			width: 100%;
			height: 2rpx;
			box-sizing: border-box;
			padding: 0rpx 20rpx;

			.line-content {
				width: 100%;
				height: 100%;
				background-color: rgba(0, 0, 0, .3);
				opacity: 0.4;
			}
		}

		.close-icon {
			position: absolute;
			right: 20rpx;
			top: 50%;
			transform: translateY(-50%);
			width: 50rpx;
			height: 50rpx;

			.close-icon-img {
				width: 100%;
				height: 100%;
			}

		}
	}

	.modal-transparent-title {
		color: #fff;
	}

	.modal-title-hide-line {
		.bottom-line {
			opacity: 0;
		}
	}

	.modal-title-no-padding {
		padding: 0rpx;

		.bottom-line {
			padding: 0rpx;
		}

		.close-icon {
			right: 0rpx;
		}
	}

	.modal-center-scroll-list {
		flex: 1;
		width: 100%;
		margin-bottom: 10rpx;
		overflow: hidden;
		-webkit-mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .8)10rpx, rgba(255, 255, 255, 1));

		.mode-modal-scroll-item {
			position: relative;
			width: 100%;
			height: 100rpx;

			.avatar-box {
				width: 80rpx;
				height: 100%;
				box-sizing: border-box;
				// padding: 10rpx;

				.avatar-inner {
					position: relative;
					width: 80rpx;
					height: 80rpx;
					border-radius: 50%;
					box-sizing: border-box;
					border: 2rpx solid #fff;
					box-shadow: 0rpx 0rpx 2rpx rgba(0, 0, 0, .3);

					.avatar-img {
						border-radius: 50%;
					}
				}


			}

			.info-box {
				position: relative;
				// flex: 1;
				width: 120rpx;
				height: 100%;
				font-size: 20rpx;
				line-height: 20rpx;
				color: #5e5c5d;
				margin-left: 10rpx;

				.info-box-item {
					margin-top: 10rpx;

					&:first-child {
						margin-top: 0rpx;
					}
				}

				.log-info-center-line {
					position: absolute;
					left: 0rpx;
					top: 50%;
					transform: translateY(-50%);
					width: 100%;
					height: 2rpx;
					background-color: rgba(0, 0, 0, 0.3);
					opacity: 0.1;
					z-index: 9;

					&::after {
						content: "";
						position: absolute;
						left: 0rpx;
						top: 50%;
						transform: translateY(-50%);
						width: 6rpx;
						height: 6rpx;
						border-radius: 50%;
						background-color: rgba(0, 0, 0, 1);
					}
				}

				.info-row-content {
					flex: 1;
					width: 100%;

					.log-info-item {
						position: relative;
						flex: 1;
						height: 100%;

						.dance-power-icon {
							width: 60rpx;
							height: 30rpx;
							margin-right: 10rpx;
						}

						.log-result-icon {
							position: absolute;
							left: 50%;
							top: 50%;
							transform: translate(-50%, -50%);
							width: 70rpx;
							height: 70rpx;
						}

						.log-type-text {
							font-weight: 700;
							color: #fff;
							// font-size: 24rpx;
							letter-spacing: 5rpx;

						}

						.defense-text {
							// text-shadow: 0rpx 0rpx 2rpx rgba(96, 173, 95, 1);
							color: rgba(96, 173, 95, 1);
						}

						.challenge-text {
							// text-shadow: 0rpx 0rpx 2rpx rgba(215, 85, 63, 1);
							color: rgba(215, 85, 63, 1);
						}

						.add-points {
							color: #41a863;
						}

						.sub-points {
							color: #be4648;
						}
					}
				}


			}




			.pk-btn-box {
				width: 80rpx;
				height: 100%;

				.pk-btn {
					position: relative;
					width: 70rpx;
					height: 70rpx;
					border-radius: 50%;
					box-sizing: border-box;
					padding: 10rpx;

					// box-shadow: inset 0rpx 0rpx 15rpx rgba(255, 255, 255, .8);
					.pk-btn-text {
						position: absolute;
						left: 50%;
						bottom: 0rpx;
						transform: translateX(-50%);
						font-size: 16rpx;
						line-height: 16rpx;
						text-align: center;
						color: #5e5c5d;
						text-shadow: 0rpx 0rpx 2rpx rgba(255, 255, 255, .8);
						// color: #fff;
						font-weight: 700;
						// text-shadow: 0rpx 0rpx 2rpx rgba(217, 77, 57, 1);
					}
				}
			}


		}

		.modal-item-text {
			color: #5e5c5d;
			font-size: 24rpx;
			line-height: 24rpx;
		}
	}











	.title-box {
		position: relative;
		width: 100%;
		height: 50rpx;

		box-sizing: border-box;
		padding: 0rpx 20rpx;
		margin-top: 20rpx;
		color: #000;
		font-size: 24rpx;
		line-height: 50rpx;

		.title-content {
			width: 100%;
			height: 100%;
			display: flex;
			justify-content: flex-start;
			align-items: center;
		}


		.left-tip {
			display: flex;
			justify-content: flex-start;
			align-items: center;
			margin-right: 80rpx;

			.tip-icon {
				width: 2rpx;
				height: 30rpx;
				margin-right: 20rpx;
				// background-color: #5e5c5d;
				background-color: rgba(0, 0, 0, .3);
				opacity: 0.6;

			}

			.tip-text {
				// font-size: 24rpx;
				// line-height: 24rpx;
				// color: #5e5c5d;
			}

		}

		.right-content {
			flex: 1;
			height: 100%;
			font-size: 20rpx;
			line-height: 20rpx;
			display: flex;
			justify-content: flex-start;
			align-items: center;

			.icon {
				width: 20rpx;
				height: 20rpx;

				margin-right: 10rpx;
			}


		}
	}

	.title-with-bottom-line {
		&::after {
			content: "";
			position: absolute;
			left: 0rpx;
			bottom: 0rpx;
			width: 100%;
			height: 1rpx;
			background-color: rgba(0, 0, 0, .1);
			opacity: 0.4;
		}

	}


	.title-bg {
		.title-content {
			background-color: rgba(0, 0, 0, .05);
		}
	}


	.n-reward-list {
		width: 100%;
		box-sizing: border-box;
		padding: 0rpx 35rpx;
		height: 120rpx;
		display: flex;
		justify-content: flex-start;
		align-items: center;

		.scroll-content {
			width: 100%;
			height: 110rpx;

			.reward-item {
				position: relative;
				display: inline-block;
				width: 100rpx;
				height: 100rpx;
				// background-color: #fff;
				background-color: rgba(255, 255, 255, .3);
				margin-right: 25rpx;

				box-sizing: border-box;
				box-shadow: 0rpx 0rpx 2rpx rgba(0, 0, 0, .1);
				// border: 2rpx solid #acc1dd;

				// border-top-left-radius: 15rpx;
				// border-bottom-right-radius: 15rpx;

				overflow: hidden;

				// filter: grayscale(100%);

				&::after {
					position: absolute;
					left: 0rpx;
					bottom: 0rpx;
					content: "";
					width: 100%;
					height: 2rpx;
					z-index: 9;
				}

				&::before {
					content: "";
					position: absolute;
					left: 0rpx;
					bottom: 0rpx;
					width: 100%;
					height: 100%;
					z-index: 2;
				}

				.reward-num {
					position: absolute;
					right: 0rpx;
					bottom: 4rpx;
					display: inline-block;
					padding: 0 8rpx;
					font-size: 16rpx;
					color: #fff;
					background-color: rgba(0, 0, 0, .3);
					// border-radius: 10rpx;
					line-height: 20rpx;
					z-index: 5;

				}


				.reward-item-icon {
					position: absolute;
					left: 0rpx;
					top: 0rpx;
					z-index: 3;
					width: 100%;
					height: 100%;

				}
			}



		}

	}

	.green-good {
		&::after {
			background-color: rgb(160, 234, 166);
		}

		&::before {
			background-image: linear-gradient(to top, rgba(160, 234, 166, .3), rgba(160, 234, 166, 0));
		}

		.name-text {
			color: rgb(160, 234, 166);
		}
	}

	.orange-good {
		&::after {
			background-color: rgb(236, 193, 159);
		}

		&::before {
			background-image: linear-gradient(to top, rgba(236, 193, 159, .3), rgba(236, 193, 159, 0));
		}

		.name-text {
			color: rgb(236, 193, 159);
		}
	}

	.blue-good {
		&::after {
			background-color: rgb(155, 223, 236);
		}

		&::before {
			background-image: linear-gradient(to top, rgba(155, 223, 236, .3), rgba(155, 223, 236, 0));
		}

		.name-text {
			color: rgb(155, 223, 236);
		}
	}

	.purple-good {
		&::after {
			background-color: rgb(197, 153, 234);
		}

		&::before {
			background-image: linear-gradient(to top, rgba(197, 153, 234, .3), rgba(197, 153, 234, 0));
		}

		.name-text {
			color: rgb(197, 153, 234);
		}
	}

	.gray-good {
		&::after {
			background-color: rgb(204, 204, 204);
		}

		&::before {
			background-image: linear-gradient(to top, rgba(204, 204, 204, .3), rgba(204, 204, 204, 0));
		}

		.name-text {
			color: rgb(204, 204, 204);
		}
	}

	.good-after-before {

		&::after {
			position: absolute;
			left: 0rpx;
			bottom: 0rpx;
			content: "";
			width: 100%;
			height: 2rpx;
			z-index: 9;
		}

		&::before {
			content: "";
			position: absolute;
			left: 0rpx;
			bottom: 0rpx;
			width: 100%;
			height: 100%;
			z-index: 2;
		}

	}
























	// .green-card {
	// 	background-color: rgb(160, 234, 166);
	// 	box-shadow: 0rpx 0rpx 6rpx rgb(160, 234, 166);

	// 	&::after {
	// 		background-image: linear-gradient(to bottom, rgba(197, 153, 234, .0)0%, rgba(160, 234, 166, 1)100%);
	// 	}
	// }

	.orange-card {
		background-image: linear-gradient(to bottom, rgb(255, 208, 65), rgb(255, 208, 65));
		box-shadow: 0rpx 0rpx 6rpx rgb(255, 208, 65);

		&::after {
			background-image: linear-gradient(to bottom, rgba(197, 153, 234, .0)0%, rgba(255, 208, 65, .6)100%);
		}
	}

	.blue-card {
		background-image: linear-gradient(to bottom, rgb(101, 220, 255), rgb(101, 220, 255));
		box-shadow: 0rpx 0rpx 6rpx rgb(101, 220, 255);

		&::after {
			background-image: linear-gradient(to bottom, rgba(197, 153, 234, .0)0%, rgba(101, 220, 255, .6)100%);
		}
	}

	.purple-card {
		background-image: linear-gradient(to bottom, rgb(166, 65, 255), rgb(166, 65, 255));
		box-shadow: 0rpx 0rpx 6rpx rgb(166, 65, 255);

		&::after {
			background-image: linear-gradient(to bottom, rgba(197, 153, 234, .0)0%, rgba(166, 65, 255, .6)100%);
		}
	}

	.colorful-card {
		background-image: repeating-conic-gradient(from 0deg, #0f0, #ff0, #0ff, #f0f, #0ff);
		box-shadow: 0rpx 0rpx 6rpx #fff;

		&::after {
			background-image: linear-gradient(to bottom, rgba(197, 153, 234, .0)0%, rgba(0, 0, 0, .6)100%);
		}
	}

	.card-farther {
		box-sizing: border-box;
		padding: 2rpx;
	}

	.card-after-before {
		&::after {
			position: absolute;
			left: 50%;
			bottom: 2rpx;
			transform: translateX(-50%);
			content: "";
			width: calc(100% - 2rpx);
			height: 40rpx;
			z-index: 2;
			border-radius: 0rpx 0rpx 8rpx 8rpx;

		}

		// &::before {
		// 	content: "";
		// 	position: absolute;
		// 	left: 0rpx;
		// 	top: 0rpx;
		// 	width: 100%;
		// 	height: 100%;
		// 	border-radius: 8rpx;
		// 	background-color: transparent;
		// 	box-shadow: inset 0rpx 0rpx 2rpx rgba(0, 0, 0, .3);
		// 	z-index: 9999;
		// 	box-sizing: border-box;
		// }
	}


	.card-border-4rpx {
		padding: 4rpx;

		&::after {
			bottom: 4rpx;
			transform: translateX(-50%);
			width: calc(100% - 4rpx);
		}
	}







	.consume-box {
		// height: 100%;
		height: 40rpx;
		display: flex;
		justify-content: flex-end;
		align-items: center;

		.consume-icon {
			width: 30rpx;
			height: 30rpx;
			margin-right: 5rpx;
		}

		.consume-num {
			color: #fff;
			font-size: 24rpx;
			line-height: 24rpx;
		}

		.consume-number {
			font-size: 24rpx;
			line-height: 24rpx;

			.num {
				color: #55d8c0;
			}

			.need-num {}
		}
	}

	.btn-box {
		width: 100%;
		height: 60rpx;
		// background-color: pink;

		margin-top: 20rpx;
		margin-bottom: 30rpx;

		.btn-item {
			width: 180rpx;
			height: 100%;
			margin-right: 20rpx;
			font-size: 24rpx;
			line-height: 60rpx;
			background-color: transparent;
			border-radius: 5rpx;
			box-shadow: 0rpx 0rpx 4rpx #fff;
			box-sizing: border-box;
			padding: 2rpx;

			.btn-content {
				width: 100%;
				height: 100%;
				background-color: #f3efec;
				color: #000;

				border-radius: 5rpx;
				display: flex;
				justify-content: center;
				align-items: center;

			}

			.live-btn {
				// background-color: #bea97c;
			}

			.get-reward-btn {
				background-color: #fef9d9;
			}

			.start-live-btn {
				background-color: rgba(248, 239, 224, 1);
				color: #715a52;
			}

			.remove-btn {
				background-color: rgba(227, 229, 236, 1);
				color: #646369;
			}

			.secretary-update-btn {
				background-color: #bea77a;
				color: #fff;
			}



			&:last-child {
				margin-right: 0rpx;
			}
		}

	}


	.person-choose-list {
		flex: 1;
		width: 100%;
		box-sizing: border-box;
		padding: 0rpx 20rpx;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		overflow: hidden;
		margin-top: 10rpx;

		.scroll-content {
			width: 618rpx;
			height: 100%;

			.person-item {
				position: relative;
				display: inline-block;
				width: 145rpx;
				height: 200rpx;
				margin-right: 15rpx;
				box-sizing: border-box;
				// border: 2rpx solid #acc1dd;
				border-radius: 8rpx;
				border: 4rpx solid transparent;
				margin-top: 5rpx;
				overflow: hidden;

				&:nth-child(4n) {
					margin-right: 0rpx;
				}



				.person-item-icon {
					width: 100%;
					height: 100%;
					border-radius: 8rpx;
					// box-shadow: 0rpx 0rpx 2rpx rgba(0,0,0,.6);

				}

				.disabled-masker {
					position: absolute;
					left: 0rpx;
					top: 0rpx;
					width: 100%;
					height: 100%;
					z-index: 6;
					display: flex;
					justify-content: center;
					align-items: center;

					.disabled-img {
						width: 30rpx;
						height: 30rpx;
					}

				}


				.person-type-icon {
					position: absolute;
					left: 6rpx;
					top: 4rpx;
					font-size: 10rpx;
					line-height: 22rpx;
					color: #fff;
					padding: 0rpx 8rpx;

					border-radius: 5rpx;

				}

				.living {
					background-color: #f05151;
				}

				.used {
					background-color: #3f85ff;
				}

				.free {
					background-color: #4ece3d;
				}

				.choose-masker-box {
					position: absolute;
					left: 0rpx;
					top: 0rpx;
					z-index: 3;
					width: 100%;
					height: 100%;
					border-radius: 8rpx;
					background-color: transparent;
					box-shadow: inset 0rpx 0rpx 40rpx #e9d864;

				}

				.person-bottom-info {
					position: absolute;
					left: 0rpx;
					bottom: 0rpx;
					display: flex;
					justify-content: flex-start;
					align-items: flex-end;
					height: 40rpx;
					width: 100%;
					z-index: 4;
					background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0)0%, rgba(0, 0, 0, .5)50%, rgba(0, 0, 0, .6)80%, rgba(0, 0, 0, .7)100%);

					.person-name {
						width: 60rpx;
						height: 100%;
						font-size: 12rpx;
						line-height: 12rpx;
						display: flex;
						justify-content: flex-start;
						align-items: flex-end;
						color: #fff;
						box-sizing: border-box;
						padding-left: 6rpx;
						padding-bottom: 8rpx;
					}

					.person-name-fill-center {
						width: 100%;
						justify-content: center;
						padding-left: 0rpx;
					}

					.person-popularity {
						flex: 1;
						height: 100%;
						display: flex;
						justify-content: flex-end;
						align-items: flex-end;
						box-sizing: border-box;
						padding-right: 6rpx;
						padding-bottom: 8rpx;

						.popularity-icon {
							width: 15rpx;
							height: 15rpx;
							display: flex;
							justify-content: center;
							align-items: center;
							margin-right: 3rpx;

							.popularity-icon-img {
								width: 100%;
								height: 100%;
							}

						}

						.person-popularity-num {
							font-size: 12rpx;
							line-height: 12rpx;
							color: #fff;
						}
					}

				}

				.person-living-masker {
					position: absolute;
					left: 0rpx;
					top: 0rpx;
					width: 100%;
					height: 100%;
					border-radius: 8rpx;
					background-color: rgba(0, 0, 0, .5);
					z-index: 2;
					display: flex;
					justify-content: center;
					align-items: center;
					font-size: 18rpx;
					line-height: 18rpx;
					color: #fff;

				}

				.choosed-icon {
					position: absolute;
					left: 50%;
					top: 50%;
					transform: translate(-50%, -50%);
					width: 40rpx;
					height: 40rpx;
					z-index: 3;

					.choosed-icon-img {
						width: 100%;
						height: 100%;
					}
				}



			}

			.grayStaff {
				filter: grayscale(80%);
			}

			.active-person-item {
				// border-color: #fff;
			}

		}

	}

	.bottom-tip {
		position: absolute;
		left: 0rpx;
		bottom: 30rpx;
		width: 100%;
		height: 50rpx;
		display: flex;
		justify-content: center;
		align-items: center;


		.left-point,
		.right-point {
			width: 6rpx;
			height: 6rpx;
			// border-radius: 50%;
			background-color: #fff;
			transform: rotate(45deg);
		}

		.center-content,
		.m-center-content {
			display: inline-block;
			text-align: center;
			font-size: 24rpx;
			line-height: 50rpx;
			color: #fff;
			margin-left: 15rpx;
			margin-right: 15rpx;

		}

	}


	.item-bottom-line {
		&::after {
			content: '';
			position: absolute;
			left: 0rpx;
			bottom: 0rpx;
			width: 100%;
			height: 2rpx;
			background-color: rgba(0, 0, 0, 0.3);
			opacity: 0.1;
		}
	}

	.mode-modal {
		position: absolute;
		left: 0rpx;
		top: 0rpx;
		width: 100vw;
		height: 100vh;
		z-index: 9;
		background-color: rgba(0, 0, 0, .3);
		backdrop-filter: blur(15rpx);

		.mode-modal-content {
			position: relative;
			width: calc(100% - 80rpx);
			height: 1100rpx;
			backdrop-filter: none;
			background-color: transparent;
			padding-bottom: 62rpx;
			overflow: hidden;

			.modal-content {
				border-radius: 2rpx 2rpx 0rpx 0rpx;
			}

			.mode-modal-box-style {
				position: relative;
				flex: 1;
				width: 100%;
				// margin-top: 10rpx;
				overflow: hidden;
				box-sizing: border-box;
				padding: 0rpx 20rpx;
			}
		}


		.image-title {
			width: 150rpx;
			height: 60rpx;
		}

	}

	.modal-top-switch {
		position: relative;
		width: 100%;
		height: 80rpx;

		.switch-get-tip {
			position: absolute;
			top: 50%;
			right: 0rpx;
			transform: translateY(-50%);

			font-size: 16rpx;
			line-height: 16rpx;
			color: #41a863;
		}

		.switch-tab-content {
			width: 200rpx;
			height: 50rpx;
			border-radius: 25rpx;
			background-color: rgba(0, 0, 0, .1);
			box-sizing: border-box;
			padding: 5rpx;

			.switch-tab-item {
				flex: 1;
				font-size: 20rpx;
				line-height: 20rpx;
				color: #fff;
				height: 100%;
			}

			.act-switch-tab-item {
				background-color: #fff;
				border-radius: 20rpx;
				color: #98999b;
				box-shadow: 0rpx 0rpx 4rpx rgba(0, 0, 0, .1);

			}

		}



	}

	.bottom-mode-tab {
		position: absolute;
		left: 0rpx;
		bottom: 0rpx;
		width: 100%;
		height: 55rpx;

		.modal-bottom-tab-line {
			position: absolute;
			width: 100%;
			height: 2rpx;
			left: 0rpx;
			top: 0rpx;
			transform: translateY(-50%);
			z-index: 9;
			background-color: rgba(255, 255, 255, 0.3);
			opacity: 0.3;
		}


		.tab-item {
			position: relative;
			flex: 1;
			height: 100%;
			font-size: 24rpx;
			line-height: 24rpx;
			color: #fff;

			&::after {
				content: "";
				position: absolute;
				right: 0rpx;
				top: 50%;
				transform: translate(50%, -50%);
				width: 1rpx;
				height: 25rpx;
				background-color: rgba(255, 255, 255, 0.3);
				opacity: 0.3;

			}

		}

		.last-tab-item {
			&::after {
				content: "";
				opacity: 0;
			}
		}

		.empty-tab {
			opacity: 0;
		}



		.act-tab-item {
			background-color: rgba(255, 255, 255, .8);
			color: #715a52;
			border-radius: 2rpx;
			animation: bagTabScale 0.2s linear;
		}
	}






	@keyframes bagTabScale {
		0% {
			transform: scale(1);
		}

		50% {
			transform: scale(1.1);
		}

		100% {
			transform: scale(1);
		}
	}

	// dance-sort-box
	.modal-sort-box {

		.dance-sort-title {
			position: relative;
			width: 100%;
			height: 50rpx;

			.sort-bottom-line {
				position: absolute;
				left: 0rpx;
				bottom: 0rpx;
				width: 100%;
				height: 2rpx;
				background-color: rgba(0, 0, 0, 0.3);
				opacity: 0.3;
			}
		}

		.dance-sort-scroll {
			position: relative;
			flex: 1;
			width: 100%;
			box-sizing: border-box;
			// margin-bottom: 6rpx;
			padding-bottom: 100rpx;
			overflow: hidden;

			.dance-sort-item {
				position: relative;
				width: 100%;
				height: 100rpx;
				font-size: 20rpx;
				line-height: 20rpx;
			}
		}

		.sort-number {
			width: 120rpx;
			height: 100%;

			.sort-number-text {
				font-size: 24rpx;
				line-height: 24rpx;
				color: #5e5c5d;
			}

			.sort-icon {
				width: 80rpx;
				height: 80rpx;
			}
		}

		.sort-user {
			flex: 1;
			height: 100%;

		}


		.sort-integral {
			width: 120rpx;
			height: 100%;

			.sort-integral-text {
				font-size: 20rpx;
				line-height: 20rpx;
			}
		}

		.rank-icon {
			width: 150rpx;
		}

		.sort-territory {
			width: 150rpx;

		}

		.sort-defense {
			width: 100rpx;

		}

		.gt-btn {
			width: 80rpx;

		}
	}


	.modal-reward-box {

		.reward-sort-name {
			width: 190rpx;
			height: 100%;
			font-size: 24rpx;
			line-height: 24rpx;
			color: #5e5c5d;

			.sort-number-text {
				font-size: 24rpx;
				line-height: 24rpx;
				color: #5e5c5d;
			}

			.sort-icon {
				width: 80rpx;
				height: 80rpx;
			}
		}

		.user-reward-sort-item {
			position: absolute;
			left: 0rpx;
			bottom: 0rpx;
			width: 100%;
			height: 100rpx;
			z-index: 9;
			background-color: rgba(255, 255, 255, .2);
			box-sizing: border-box;
			padding: 0rpx 20rpx;


		}

		.territory-level {
			width: 100rpx;
			height: 100%;
		}

		.territory-reward {
			flex: 1;
			height: 100%;
		}

		.territory-bonus {
			width: 100rpx;
			height: 100%;
		}

		.gt-reward-intro {
			font-size: 24rpx;
			line-height: 36rpx;
			color: #5e5c5d;
			margin-top: 20rpx;
		}



		.cRank-integral {
			width: 200rpx;
			height: 100%;
		}

		.cRank-rank {
			flex: 1;
			height: 100%;
		}

		.reward-scroll-list {
			box-sizing: border-box;
			padding-bottom: 94rpx;
		}

		.user-reward-sort-btn {
			height: 100%;

			.btn-box {
				margin-top: 0rpx;
				margin-bottom: 0rpx;
				height: 50rpx;

				.btn-item {
					width: 120rpx;
					height: 50rpx;
					line-height: 50rpx;
					font-size: 22rpx;
				}
			}
		}

	}



	.rewards-box {
		// width: 200rpx;
		flex: 1;
		height: 100%;

		.reward-item {
			position: relative;
			width: 80rpx;
			height: 80rpx;
			margin-right: 10rpx;
			background-color: rgba(255, 255, 255, 0.3);
			box-shadow: 0rpx 0rpx 2rpx rgba(0, 0, 0, 0.1);

			&:last-child {
				margin-right: 0rpx;
			}

			&::after {
				position: absolute;
				left: 0rpx;
				bottom: 0rpx;
				content: "";
				width: 100%;
				height: 2rpx;
				z-index: 9;
			}

			&::before {
				content: "";
				position: absolute;
				left: 0rpx;
				bottom: 0rpx;
				width: 100%;
				height: 100%;
				z-index: 2;
			}

			.reward-num {
				position: absolute;
				right: 0rpx;
				bottom: 4rpx;
				display: inline-block;
				padding: 0 8rpx;
				font-size: 16rpx;
				color: #fff;
				background-color: rgba(0, 0, 0, 0.3);
				// border-radius: 10rpx;
				line-height: 20rpx;
			}
		}
	}




	.user-dance-sort-item {
		position: absolute;
		left: 0rpx;
		bottom: 0rpx;
		width: 100%;
		height: 100rpx;
		z-index: 9;
		background-color: rgba(255, 255, 255, .2);
		box-sizing: border-box;
		padding: 0rpx 20rpx;
		font-size: 20rpx;
		line-height: 20rpx;
	}

	.lord-info {
		flex: 1;
		height: 100%;

		.avatar-img {
			width: 80rpx;
			height: 80rpx;
			border-radius: 50%;
			box-shadow: 0rpx 0rpx 1rpx rgba(0, 0, 0, 0.6);
			margin-right: 10rpx;
			border: 2rpx solid #fff;
		}

		.lord-name-power {
			flex: 1;
			height: 100%;

			.lord-name {
				width: 100rpx;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				font-size: 18rpx;
				line-height: 18rpx;
				margin-bottom: 10rpx;
			}

			.dance-power {
				width: 100%;
				font-size: 18rpx;
				line-height: 18rpx;

				.dance-power-icon {
					width: 60rpx;
					height: 30rpx;
				}
			}

			.lord-honer {
				font-size: 14rpx;
				line-height: 24rpx;
				background-color: #a690ff;
				color: #fff;
				padding: 0rpx 5rpx;
				border-radius: 5rpx;
			}
		}
	}

	.mode-modal-table-title {
		position: relative;
		width: 100%;
		height: 50rpx;

		&::after {
			content: '';
			position: absolute;
			left: 0rpx;
			bottom: 0rpx;
			width: 100%;
			height: 2rpx;
			background-color: rgba(0, 0, 0, 0.3);
			opacity: 0.3;
		}
	}

	.sort-title-font-style {
		font-size: 24rpx;
		line-height: 24rpx;
		font-weight: 700;
		color: #5e5c5d;
	}

	@keyframes buttonClickScale {
		0% {
			transform: scale(0.8);
		}


		100% {
			transform: scale(1);
		}
	}

	.has-consume-thing-box {
		width: 200rpx;
		height: 100%;

		.consume-thing {
			position: relative;
			width: 150rpx;
			height: 30rpx;
			border-radius: 15rpx;
			background-color: rgba(0, 0, 0, 0.2);
			font-size: 20rpx;
			line-height: 30rpx;
			color: #fff;

			.consume-thing-icon {
				position: absolute;
				left: 0rpx;
				top: 50%;
				transform: translate(-25%, -50%);
				width: 50rpx;
				height: 50rpx;
			}

			.consume-thing-num {
				flex: 1;
				height: 100%;
				text-align: center;
				margin-left: 30rpx;
			}

			.consume-thing-add {
				width: 30rpx;
				height: 30rpx;
				box-sizing: border-box;
				border-radius: 50%;
				padding: 6rpx;

			}
		}
	}

	// 暂存
	.dance-girls-item-content {
		position: relative;
		width: 100%;
		height: 100%;
		border-radius: 8rpx;
		overflow: hidden;

		.rarity-level {
			position: absolute;
			// left: 8rpx;
			left: 5rpx;
			top: 5rpx;
			// width: 85rpx;
			width: 60rpx;
			// height: 40rpx;
			height: 30rpx;
			z-index: 10;
		}

		.start-box {
			position: absolute;
			left: 0rpx;
			bottom: 30rpx;
			width: 100%;
			height: 30rpx;
			z-index: 10;
			box-sizing: border-box;
			padding-left: 10rpx;

			.start-item {
				width: 20rpx;
				height: 20rpx;
				display: flex;
				justify-content: center;
				align-items: center;

				.start-img {
					width: 100%;
					height: 100%;
				}
			}
		}

		.bottom-info-new {
			position: absolute;
			left: 0;
			bottom: 0;
			width: 100%;
			height: 30rpx;
			z-index: 10;
			border-radius: 0rpx 0rpx 10rpx 10rpx;

			.name-box {
				height: 100%;
				font-size: 12rpx;
				line-height: 30rpx;
				color: #fff;
				text-shadow: 1rpx 1rpx 1rpx rgba(0, 0, 0, 0.3);
				box-sizing: border-box;
			}

		}

		.locked-masker {
			position: absolute;
			left: 0rpx;
			top: 0rpx;
			width: 100%;
			height: 100%;
			background-color: rgba(0, 0, 0, 0.6);
			z-index: 99;

			.locked-tip {
				font-size: 22rpx;
				line-height: 35rpx;
				height: 35rpx;
				color: #fff;
				background-color: rgba(0, 0, 0, .5);
				text-align: center;
				width: 100%;
				text-shadow: 0rpx 0rpx 2rpx rgba(0, 0, 0, .3);
				opacity: 0.8;
			}
		}
	}

	.postion-center-center {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.position-absolute-full {
		position: absolute;
		left: 0rpx;
		top: 0rpx;
		width: 100%;
		height: 100%;
	}
</style>